package com.Tjise.JAVAzuoye2;

public class TestCompany {
    public static void main(String[] args) {
        ColaEmployee[] cel = {
                new SalariedEmployee("salariedEmployee", 6, 30000),
                new HourEmployee("hourlyEmployee", 5, 100, 300),
                new SalasEmployee("salesEmployee", 3, 7000000, 0.3)
        };
        for (int i = 0; i < cel.length; i++) {
            new Company().getSalary(cel[i],7);
        }
    }
}
